﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace mozhi.smarterp.AuthorCenter.Migrations
{
    public partial class _202504042139 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_DataLinkages",
                table: "DataLinkages");

            migrationBuilder.RenameTable(
                name: "DataLinkages",
                newName: "MozhiDataLinkage");

            migrationBuilder.AddPrimaryKey(
                name: "PK_MozhiDataLinkage",
                table: "MozhiDataLinkage",
                column: "Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_MozhiDataLinkage",
                table: "MozhiDataLinkage");

            migrationBuilder.RenameTable(
                name: "MozhiDataLinkage",
                newName: "DataLinkages");

            migrationBuilder.AddPrimaryKey(
                name: "PK_DataLinkages",
                table: "DataLinkages",
                column: "Id");
        }
    }
}
